//
//  UIView+Notice.m
//  meiyaya
//
//  Created by 张领瑞 on 2017/9/7.
//  Copyright © 2017年 ShiFeiEr. All rights reserved.
//

#import "UIView+Notice.h"

@implementation UIView (Notice)
-(void)noticeWithLableWith:(NSString *)msg{
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, SCREENWIDTH, 26)];
    label.textAlignment = NSTextAlignmentCenter;
    label.text = msg;
    label.center = self.center;
    [self addSubview:label];
}
@end
